//
//  RHDeviceModel.h
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/8/10.
//

#import "BaseModel.h"
#import "DeviceDescModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,DevInverterType) {
    DevInverterTypeNone    = 0,
    DevInverterTypeRYY12K  = 1,   //日月元12kw
    DevInverterTypeRYY6K   = 2,   //日月元6kw
    DevInverterTypeMGRN7K    = 21,  //麦格瑞诺7KW
    DevInverterTypeMGRN12K    = 22,  //麦格瑞诺12KW
    DevInverterTypeNT      = 100  //纳通高压10KW
};
@interface RHDeviceModel : BaseModel
@property (nonatomic,assign)NSInteger device_id;//对应 id

@property (nonatomic,assign)NSInteger   installTime;//安装时间

@property (nonatomic,copy)NSString    *deviceId;

@property (nonatomic,copy)NSString    *deviceName;

@property (nonatomic,copy)NSString    *plantName;//所属电站

@property (nonatomic,assign)NSInteger deviceTypeId;

@property (nonatomic ,assign)DevInverterType inverterType;//逆变器类型

@property (nonatomic,copy)NSString* invType;

@property (nonatomic,assign)ProductType    productTypeId;//

@property (nonatomic,copy)NSString    *productTypeCode;//大类

@property (nonatomic,copy)NSString    *productTypeName;

@property (nonatomic,copy)NSString    *deviceTypeCode;//小类(设备型号)

@property (nonatomic,copy)NSString    *deviceTypeName;

@property (nonatomic,assign)BOOL isHighVoltage;//是否高压

@property (nonatomic,copy)NSString    *typeName;//大小类型拼接

@property (nonatomic,copy)NSString    *deviceSoftware;//软件版本

@property (nonatomic,assign)BOOL       isSelected;//设备分发时选择框使用

@property (nonatomic,assign)BOOL       isBind;//标记是否绑定

@property (nonatomic,assign)NSInteger  netTag;//离线原因

@property (nonatomic ,copy) NSString *theId;
//最后一次上线时间,可用来判断有无连接过云平台
@property (nonatomic ,assign) NSInteger lastOnlineTime;

@property (nonatomic ,copy) NSString *desc;

//0:On-line 1:Off-line
@property (nonatomic ,copy) NSString *status;
//逆变器在线状态 0离线  1在线
@property (nonatomic ,assign) NSInteger invState;
//0:正常  1:告警  2:故障
@property(nonatomic,assign)NSInteger normal;

@property (nonatomic ,copy) NSString *mac;

@property (nonatomic, strong) NSDictionary *dataInfo;

@property (nonatomic, copy) NSString *soc;
@end

NS_ASSUME_NONNULL_END
